package com.example.weather.imp

import com.example.library_base.http.HttpResult
import com.example.weather.BuildConfig
import com.example.weather.girl.GirlModel
import com.example.weather.today.TodayWeatherModel
import retrofit2.http.GET
import retrofit2.http.Headers
import retrofit2.http.QueryMap

interface Service {

    @Headers("Domain-Name: ${BuildConfig.BASE_URL}")
    @GET("/api/tianqi")
    suspend fun getTodayWeather(@QueryMap queryMap: Map<String, @JvmSuppressWildcards Any>): HttpResult<TodayWeatherModel>

    @Headers("Domain-Name: ${BuildConfig.BASE_URL}")
    @GET("/api/meinvtu")
    suspend fun getGirlList(@QueryMap queryMap: Map<String, @JvmSuppressWildcards Any>): HttpResult<List<GirlModel>>
}
